<?php

namespace app\admin\model;

use think\Model;
use traits\model\SoftDelete;
use app\common\model\Config;

class Channel extends Model
{

    use SoftDelete;


    // 表名
    protected $name = 'channel';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'datetime'; 
    protected $dateFormat = 'Y-m-d H:i:s';

    // 定义时间戳字段名
    protected $createTime = 'create_dt';
    protected $updateTime = 'update_dt';
    protected $deleteTime = false;    

    // 追加属性
    protected $append = [
    ];

    public function getStatusList()
    {
        return ['0' => '隐藏', '1' => '正常'];
    }
}
